<?php
require("conn.php");
$chude=$_POST["chude"];
$sql="SELECT * FROM `sanpham` where chude='$chude'";
$bang=mysql_query($sql);
?>
<table width="647" border="1">
  <tr>
    <td colspan="6"><strong>Danh s&aacute;ch s&#7843;n ph&#7849;m b&aacute;n thu&#7897;c ch&#7911; &#273;&#7873; | <a onclick="themsanphamban()">Th&ecirc;m s&#7843;n ph&#7849;m</a> </strong></td>
  </tr>
  <tr>
    <td width="48"><strong>Stt</strong></td>
    <td width="289"><strong>T&ecirc;n</strong></td>
    <td width="115"><strong>&#272;&#417;n gi&aacute; </strong></td>
    <td width="97"><strong>S&#7889; l&#432;&#7907;ng </strong></td>
    <td width="27"><strong>S&#7919;a</strong></td>
    <td width="31"><strong>X&oacute;a</strong></td>
  </tr>
  <?php
  $stt=0;
  while($rows=mysql_fetch_array($bang))
  {
   $stt++;
  ?>
  <tr>
    <td><?php echo($stt);?></td>
    <td><?php echo($rows["ten"]);?></td>
    <td><?php echo($rows["dongia"]);?></td>
    <td><?php echo($rows["soluong"]);?></td>
    <td><img src="../hinh/b_edit[1].png" width="16" height="16"></td>
    <td><img src="../hinh/b_drop[1].png" width="16" height="16"></td>
  </tr>
  <?php
  }
  ?>
</table>
